{if $MENU != ''}
	<!--</div>-->

	<!-- Menu -->
	<div class="sf-contener clearfix">
		<ul class="sf-menu clearfix">
			{$MENU}

			<!--Add by thoinv-->

			<li><a href="{$link->getPageLink('sitemap')}">{l s='Sitemap' mod='blockpermanentlinks'}</a></li>
			
			<li><a href="{$link->getPageLink('contact', true)}">{l s='Contact' mod='blockpermanentlinks'}</a></li>
			
			<!--<li>	<script type="text/javascript">
		writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='Bookmark this page' mod='blockpermanentlinks' js=1}'	);</script></li>-->
			<li>
				<a href="#"><script type="text/javascript">
					$(document).ready(function () {
						$("#setCurrency").mouseover(function(){
							$(this).addClass("countries_hover");
							$(".currencies_ul").addClass("currencies_ul_hover");
						});
						$("#setCurrency").mouseout(function(){
							$(this).removeClass("countries_hover");
							$(".currencies_ul").removeClass("currencies_ul_hover");
						});

						$('ul#first-currencies li:not(.selected)').css('opacity', 0.3);
						$('ul#first-currencies li:not(.selected)').hover(function(){
							$(this).css('opacity', 1);
						}, function(){
							$(this).css('opacity', 0.3);
						});
					});
				</script>

				
					<form action="{$request_uri}" method="post">
						<p>
							<input type="hidden" name="id_currency" id="id_currency" value=""/>	
							<input type="hidden" name="SubmitCurrency" value="" />
							{l s='Currency' mod='blockcurrencies'}{$blockcurrencies_sign}
						</p>
						<ul id="first-currencies" class="currencies_ul">
							{foreach from=$currencies key=k item=f_currency}
								<li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}>
									<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}">{$f_currency.sign}</a>
								</li>
							{/foreach}
						</ul>
					</form>
				</a>
			</li>
			
			<!--End add by thoinv-->
			{if $MENU_SEARCH}
				<li class="sf-search noBack" style="float:right">
					<form id="searchbox" action="{$link->getPageLink('search')}" method="get">
						<p>
							<input type="hidden" name="controller" value="search" />
							<input type="hidden" value="position" name="orderby"/>
							<input type="hidden" value="desc" name="orderway"/>
							<input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'htmlall':'UTF-8'}{/if}" />
						</p>
					</form>
				</li>
			{/if}
		</ul>
		<div class="sf-right">&nbsp;</div>

	</div> <!-- Add by thoinv -->	

	<!--/ Menu -->
{/if}
